package com.marisfrolg.gateway.mapper;

import com.marisfrolg.gateway.entity.TUserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lgg
 * @since 2023-01-05
 */
public interface TUserRoleMapper extends BaseMapper<TUserRole> {

    List<String> getPermissionsByRoles(@Param("roles") List<String> roles);

    List<String> getRolesByUsername(@Param("username") String username);
}
